package com.monas.server;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MonasHelper {

	public static String getStringTime(String format) {
		SimpleDateFormat dateFormat = new SimpleDateFormat(format);
		return dateFormat.format(new Date());
	}

	public static String getTime() {
		return getStringTime("yyyy-MM-dd HH:mm:ss");
	}

	public static String getTimeName() {
		return getStringTime("yyyyMMdd_HHmmss");
	}
}
